const LinkedList = require('./LinkedList');
class Queue {
  // 队列是添加和删除
  constructor() {
    this.ll = new LinkedList();
  }
  // 添加队列
  offer(element) {
    this.ll.add(element);
  }
  // 删除队列的第一项
  poll() {
    return this.ll.remove(0);
  }
}
module.exports = Queue;
